package main

import (
	"os"
	"fmt"
)

func check(e error)  {
	if e!=nil{
		panic(e)
	}
}

func main()  {
	fileInfo,err:=os.Stat("/home/xiaonu/Desktop/aa.txt")
	check(err)
	fmt.Println(fileInfo.Name())
	fmt.Println(fileInfo.IsDir())
	fmt.Println(fileInfo.Size())
	fmt.Println(fileInfo.ModTime())
	fmt.Println(fileInfo.Mode())

}
